using SqlSugar;
using ZR.Model;

namespace ImportPlcPointPosition.Models
{
	/// <summary>
	/// 工艺主表
	/// </summary>
	[SugarTable("cks_technique_template")]
	public class CksTechniqueTemplate:BaseEntity
	{
		/// <summary>
		/// Id
		/// </summary>
        [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true ,IsIdentity = true)]
		public int Id { get; set; }
		/// <summary>
		/// 名称
		/// </summary>
		[SugarColumn(ColumnName = "Name")]
		public string Name { get; set; } = string.Empty;
		/// <summary>
		/// 类型 1 模板 2模板结构
		/// </summary>
        [SugarColumn(ColumnName="Type"  )]
		public int Type { get; set; }
		/// <summary>
		/// 上级Id
		/// </summary>
        [SugarColumn(ColumnName="ParentId"  )]
		public int ParentId { get; set; }
		/// <summary>
		/// Plc编号
		/// </summary>
        [SugarColumn(ColumnName="PlcId"  )]
		public int PlcId { get; set; }
		/// <summary>
		/// 读取DB编号
		/// </summary>
        [SugarColumn(ColumnName="ReadDB"  )]
		public int ReadDB { get; set; }
		/// <summary>
		/// 写入DB编号
		/// </summary>
        [SugarColumn(ColumnName="WriteDB"  )]
		public int WriteDB { get; set; }
		/// <summary>
		/// 下发动作编号
		/// </summary>
        [SugarColumn(ColumnName="SendActionId"  )]
		public int SendActionId { get; set; }
		/// <summary>
		/// 同步动作编号
		/// </summary>
        [SugarColumn(ColumnName="SyncActionId"  )]
		public int SyncActionId { get; set; }

		public int Sequence { get; set; }
		/// <summary>
		/// Type=2生效
		/// </summary>
        [SugarColumn(ColumnName="DataId"  )]
		public int DataId { get; set; }
		/// <summary>
		/// 是否主键
		/// </summary>
		public bool IsPrimary { get; set; }
		/// <summary>
		/// 禁用状态
		/// </summary>
        [SugarColumn(ColumnName="Nullity"  )]
		public bool Nullity { get; set; }
		
		/// <summary>
		/// 
		/// </summary>
        [SugarColumn(ColumnName="CreatedTime"  )]
		public DateTime CreatedTime { get; set; }
	
	}
}
